#!/usr/bin/python
# Filename: 03.py
import string, sys
from os import sep as PSEP

#code 1
file_name = sys.path[0]+PSEP+"resources"+PSEP+'3.in'
out = ''
f = file(file_name, 'r')
while True:
	s=f.readline()
	if(len(s) == 0):
		break
	for c in s:
		if(str.isalpha(c)):
			out += c
print out
f.close()

#code 2
for line in open(file_name, 'r'):
	sys.stdout.write(''.join([c for c in line if c.isalpha()]))

#code 3
print ''.join([c for c in open(file_name, 'r').read() if c.isalpha()])

#code 4
filter(lambda x: x in string.letters, text)

#equality